CREATE EXTERNAL TABLE IF NOT EXISTS spmi_ods.spmi_insurance_product_relation(
id                                                 bigint                         COMMENT '主键ID',
insurance_fee_id                                   bigint                         COMMENT '保价费ID',
product_id                                         bigint                         COMMENT '产品类型ID',
product_code                                       String                         COMMENT '产品类型CODE',
product_name                                       String                         COMMENT '产品类型名称'
)
COMMENT '内部保价费报价-产品类型关系表'
PARTITIONED BY (dt STRING COMMENT '更新/创建日期 (yyyy-MM-dd)')
STORED AS PARQUET
LOCATION '/dw/hive/spmi_ods.db/external/spmi_insurance_product_relation'
TBLPROPERTIES (
  'parquet.column.index.access'='true'
)